<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="../../../inc/global.jsp" %><%@ include file="../../top.jsp" %>
<compress:html compressCss="true" compressJavaScript="true" enabled="true" >
<!doctype html>
<html>
<head>
    <title><fmt:message key="jsp.title.mall.admin.product.item.sku"/></title>
    <%@ include file="../head.jsp" %>
    <style type="text/css">
        table tr td em {display: inline-block; margin: 0 3px; color:#000;}
    </style>
    <script type="text/javascript">
        $(function() {
            tableTrMouseOver($('table tr'));
        });// all ready
    </script>
</head>
<body>
<div id="dialog-confirm">

</div>
<div class="main">
    <div class="wrapper">
        <%@include file="../../header.jsp" %>
        <%@include file="../sidebar.jsp"%>
        <!-- sidebar end -->
        <div class="content item-form">
            <div class="menu-tab">
                <ul>
                    <li class="slt"><a href="/mall/adm/product/inventory"><fmt:message key="jsp.menu-tab.mall.admin.product.inventory.list" /></a></li>
                    <li><a href="/mall/adm/product/inventory/items"><fmt:message key="jsp.menu-tab.mall.admin.product.inventory.spu" /></a></li>
                </ul>
            </div>
            <table>
                <tr>
                    <th style="text-align:center; width:30px">选择</th>
                    <th>商品名称</th>
                    <th>更新时间</th>
                    <th>零售价格</th>
                    <th>站内售价</th>
                    <th>库存数量</th>
                    <th style="text-align:center; width:60px">上架商品</th>
                    <th style="text-align:center; width:30px">入库</th>
                    <th style="text-align:center; width:30px">修改</th>
                </tr>
                <c:forEach var="item" items="${items}">
                    <tr>
                        <td><c:forEach var="nav" items="${item.navList}"><em>${nav.name}</em></c:forEach></td>
                        <td>${item.brand.name}</td>
                        <td>${item.name}</td>
                        <td>${item.displayName}</td>
                        <td><c:forEach var="attrVal" items="${item.attrValList}"><em>${attrVal.alias}</em></c:forEach></td>
                        <td style="text-align:center;"><a href="/mall/adm/product/item/edit?id=${item.id}">修改</a></td>
                    </tr>
                </c:forEach>
            </table>
        </div>
    </div>
</div>
</body>
</html>
<%@ include file="../../bottom.jsp" %>
</compress:html>